#!/usr/bin/env python

import os
import sys

from wx import FileConfig
from _meta import Meta

class Config(FileConfig):
    '''Config class

    @author Julot <andy.julot@gmail.com>
    @since Sunday, January 15, 2012. 04:48 PM'''

    def __init__(self):
        meta = Meta()
        homeDir = os.path.dirname(sys.argv[0])
        path = os.path.join(homeDir, '%s.conf' % meta.name)
        path = os.path.realpath(path)
        super(Config, self).__init__(meta.name, meta.company_name, path)